package fr.inserm.u674.chcdbweb.model.DAO;

/**
 * This class represents a generic DAO exception. It should wrap any exception of the underlying
 * code, such as SQLExceptions.
 *
 * @author BalusC
 * @link http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html
 */
public class DAOException extends Exception {
	private static final long serialVersionUID = 7003087440371904097L;
	
	/**
	 * Constructs a DAOException with the given detail message.
	 * @param message The detail message of the DAOException.
	 */
	public DAOException(String message) {
		super(message);
	}

	/**
	 * Constructs a DAOException with the given root cause.
	 * @param cause The root cause of the DAOException.
	 */
	public DAOException(Throwable cause) {
		super(cause);
	}

	/**
	 * Constructs a DAOException with the given detail message and root cause.
	 * @param message The detail message of the DAOException.
	 * @param cause The root cause of the DAOException.
	 */
	public DAOException(String message, Throwable cause) {
		super(message, cause);
	}
}
